package com.probiz.estore.product.dao;

import com.probiz.estore.common.model.product.ReviewVote;
import com.probiz.estore.core.dao.GenericDao;
/**
 * Dao interface for ReviewVote.
 */
public interface ReviewVoteDao extends GenericDao<ReviewVote> {
	/**
	 * 检查是否已经投票了
	 * @param productReviewId
	 * @param customerId
	 * @return
	 */
	public boolean isVoteAlready(Integer consultId, Integer customerId);
	/**
	 * 根据评论id和客户id获得投票情况
	 * @param productReviewId
	 * @param customerId
	 * @return
	 */
	public ReviewVote getByReviewIdAndCustomerId(Integer productReviewId, Integer customerId);
}